package com.chapter10;

public class Tnode {

	Tnode left;
	Tnode right;
	Tnode parent;
	int value;
	int leftNodes;
	int rightNodes;

	Tnode(){

	}

	public Tnode(int value){
		this.value=value;
		this.left=null;
		this.right=null;
		this.parent=null;
	}

	public Tnode getLeft() {
		return left;
	}

	public void setLeft(Tnode left) {
		this.left = left;
	}

	public Tnode getRight() {
		return right;
	}

	public void setRight(Tnode right) {
		this.right = right;
	}

	public Tnode getParent() {
		return parent;
	}

	public void setParent(Tnode parent) {
		this.parent = parent;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public int getLeftNodes() {
		return leftNodes;
	}

	public void setLeftNodes(int leftNodes) {
		this.leftNodes = leftNodes;
	}

	public int getRightNodes() {
		return rightNodes;
	}

	public void setRightNodes(int rightNodes) {
		this.rightNodes = rightNodes;
	}
	
}

